package com.ruoyi.oa.mapper;

import java.util.List;
import com.ruoyi.oa.domain.LeaveTeacher;
import org.apache.ibatis.annotations.Param;

/**
 * 教师请假Mapper接口
 * 
 * @author 张艳羽
 * @date 2024-10-10
 */
public interface LeaveTeacherMapper 
{
    /**
     * 查询教师请假
     * 
     * @param id 教师请假主键
     * @return 教师请假
     */
    public LeaveTeacher selectLeaveTeacherById(Long id);

    /**
     * 查询教师请假列表
     * 
     * @param leaveTeacher 教师请假
     * @return 教师请假集合
     */
    public List<LeaveTeacher> selectLeaveTeacherList(LeaveTeacher leaveTeacher);

    /**
     * 新增教师请假
     * 
     * @param leaveTeacher 教师请假
     * @return 结果
     */
    public int insertLeaveTeacher(LeaveTeacher leaveTeacher);

    /**
     * 修改教师请假
     * 
     * @param leaveTeacher 教师请假
     * @return 结果
     */
    public int updateLeaveTeacher(LeaveTeacher leaveTeacher);

    /**
     * 删除教师请假
     * 
     * @param id 教师请假主键
     * @return 结果
     */
    public int deleteLeaveTeacherById(Long id);

    /**
     * 批量删除教师请假
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteLeaveTeacherByIds(String[] ids);

        public int updateLeaveTeaStatus(@Param("status")String status, @Param("ids")String[] ids);
}
